<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>UC-AI-001：AI实操判定原型</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/antd@5.12.8/dist/reset.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: #f5f5f5;
            color: #333;
        }
        
        .header {
            background: #fff;
            padding: 16px 24px;
            border-bottom: 1px solid #e8e8e8;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .breadcrumb {
            color: #666;
            font-size: 14px;
        }
        
        .breadcrumb a {
            color: #1890ff;
            text-decoration: none;
        }
        
        .main-content {
            padding: 24px;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .assessment-container {
            display: grid;
            grid-template-columns: 1fr 400px;
            gap: 24px;
        }
        
        .video-section {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        .video-header {
            background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
            color: #fff;
            padding: 20px;
            text-align: center;
        }
        
        .video-title {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 8px;
        }
        
        .video-subtitle {
            font-size: 14px;
            opacity: 0.9;
        }
        
        .video-player {
            position: relative;
            background: #000;
            height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .video-placeholder {
            color: #fff;
            text-align: center;
        }
        
        .video-placeholder-icon {
            font-size: 64px;
            margin-bottom: 16px;
            opacity: 0.6;
        }
        
        .video-controls {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .play-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: #1890ff;
            border: none;
            color: #fff;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .progress-bar {
            flex: 1;
            height: 6px;
            background: rgba(255,255,255,0.3);
            border-radius: 3px;
            position: relative;
            cursor: pointer;
        }
        
        .progress-fill {
            height: 100%;
            background: #1890ff;
            border-radius: 3px;
            width: 45%;
        }
        
        .time-display {
            color: #fff;
            font-size: 14px;
            white-space: nowrap;
            font-family: monospace;
        }
        
        .ai-analysis {
            padding: 24px;
        }
        
        .analysis-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .analysis-title {
            font-size: 18px;
            font-weight: 600;
            color: #333;
        }
        
        .analysis-status {
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .status-analyzing {
            background: #fff7e6;
            color: #faad14;
            border: 1px solid #ffd591;
        }
        
        .status-completed {
            background: #f6ffed;
            color: #52c41a;
            border: 1px solid #b7eb8f;
        }
        
        .status-error {
            background: #fff2f0;
            color: #ff4d4f;
            border: 1px solid #ffccc7;
        }
        
        .analysis-content {
            margin-bottom: 24px;
        }
        
        .analysis-item {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 12px;
        }
        
        .analysis-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .analysis-item-title {
            font-size: 14px;
            font-weight: 500;
            color: #333;
        }
        
        .analysis-score {
            font-size: 16px;
            font-weight: 600;
        }
        
        .score-excellent {
            color: #52c41a;
        }
        
        .score-good {
            color: #1890ff;
        }
        
        .score-fair {
            color: #faad14;
        }
        
        .score-poor {
            color: #ff4d4f;
        }
        
        .analysis-details {
            font-size: 13px;
            color: #666;
            line-height: 1.5;
        }
        
        .analysis-progress {
            margin-bottom: 20px;
        }
        
        .progress-item {
            margin-bottom: 12px;
        }
        
        .progress-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 4px;
            font-size: 12px;
            color: #666;
        }
        
        .progress-bar-bg {
            width: 100%;
            height: 6px;
            background: #f0f0f0;
            border-radius: 3px;
            overflow: hidden;
        }
        
        .progress-bar-fill {
            height: 100%;
            border-radius: 3px;
            transition: width 0.3s;
        }
        
        .progress-bar-fill.excellent {
            background: #52c41a;
        }
        
        .progress-bar-fill.good {
            background: #1890ff;
        }
        
        .progress-bar-fill.fair {
            background: #faad14;
        }
        
        .progress-bar-fill.poor {
            background: #ff4d4f;
        }
        
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        
        .sidebar-panel {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        .sidebar-header {
            background: #fafafa;
            padding: 16px 20px;
            border-bottom: 1px solid #e8e8e8;
        }
        
        .sidebar-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
        }
        
        .sidebar-content {
            padding: 20px;
        }
        
        .criteria-list {
            list-style: none;
        }
        
        .criteria-item {
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .criteria-item:last-child {
            border-bottom: none;
        }
        
        .criteria-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 500;
        }
        
        .criteria-icon.passed {
            background: #f6ffed;
            color: #52c41a;
        }
        
        .criteria-icon.failed {
            background: #fff2f0;
            color: #ff4d4f;
        }
        
        .criteria-icon.pending {
            background: #f5f5f5;
            color: #8c8c8c;
        }
        
        .criteria-content {
            flex: 1;
        }
        
        .criteria-title {
            font-size: 13px;
            font-weight: 500;
            color: #333;
            margin-bottom: 2px;
        }
        
        .criteria-desc {
            font-size: 11px;
            color: #666;
        }
        
        .criteria-score {
            font-size: 12px;
            font-weight: 500;
        }
        
        .overall-score {
            text-align: center;
            padding: 20px;
            background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
            color: #fff;
            border-radius: 8px;
            margin-bottom: 16px;
        }
        
        .overall-score-value {
            font-size: 36px;
            font-weight: 600;
            margin-bottom: 8px;
        }
        
        .overall-score-label {
            font-size: 14px;
            opacity: 0.9;
        }
        
        .action-buttons {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .btn {
            padding: 12px 20px;
            border: 1px solid;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s;
        }
        
        .btn-primary {
            background: #1890ff;
            border-color: #1890ff;
            color: #fff;
        }
        
        .btn-primary:hover {
            background: #40a9ff;
            border-color: #40a9ff;
        }
        
        .btn-success {
            background: #52c41a;
            border-color: #52c41a;
            color: #fff;
        }
        
        .btn-success:hover {
            background: #73d13d;
            border-color: #73d13d;
        }
        
        .btn-default {
            background: #fff;
            border-color: #d9d9d9;
            color: #333;
        }
        
        .btn-default:hover {
            border-color: #1890ff;
            color: #1890ff;
        }
        
        .btn-warning {
            background: #faad14;
            border-color: #faad14;
            color: #fff;
        }
        
        .btn-warning:hover {
            background: #ffc53d;
            border-color: #ffc53d;
        }
        
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        
        .modal-content {
            background: #fff;
            border-radius: 12px;
            padding: 32px;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .modal-title {
            font-size: 20px;
            font-weight: 600;
            color: #333;
        }
        
        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #999;
        }
        
        .modal-footer {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            margin-top: 24px;
        }
        
        .loading-spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #1890ff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .analysis-timeline {
            margin-top: 20px;
        }
        
        .timeline-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 0;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .timeline-item:last-child {
            border-bottom: none;
        }
        
        .timeline-time {
            font-size: 11px;
            color: #999;
            min-width: 60px;
        }
        
        .timeline-content {
            flex: 1;
            font-size: 12px;
            color: #666;
        }
        
        @media (max-width: 768px) {
            .assessment-container {
                grid-template-columns: 1fr;
            }
            
            .sidebar {
                order: -1;
            }
        }
    </style>
</head>
<body>
    <!-- 页面头部 -->
    <div class="header">
        <div class="breadcrumb">
            <a href="#">首页</a> > <a href="#">AI判定</a> > 实操判定
        </div>
    </div>

    <!-- 主要内容区域 -->
    <div class="main-content">
        <div class="assessment-container">
            <!-- 视频分析区域 -->
            <div class="video-section">
                <div class="video-header">
                    <div class="video-title">AI实操判定分析</div>
                    <div class="video-subtitle">基础操作培训 - 工具准备步骤</div>
                </div>
                
                <div class="video-player">
                    <div class="video-placeholder">
                        <div class="video-placeholder-icon">🎬</div>
                        <div>正在分析操作视频...</div>
                    </div>
                    <div class="video-controls">
                        <button class="play-btn" onclick="togglePlay()">▶️</button>
                        <div class="progress-bar" onclick="seekVideo(event)">
                            <div class="progress-fill"></div>
                        </div>
                        <div class="time-display">0:00 / 2:30</div>
                    </div>
                </div>
                
                <div class="ai-analysis">
                    <div class="analysis-header">
                        <div class="analysis-title">AI分析结果</div>
                        <div class="analysis-status status-analyzing" id="analysisStatus">
                            <span class="loading-spinner"></span> 分析中...
                        </div>
                    </div>
                    
                    <div class="analysis-content" id="analysisContent">
                        <div class="analysis-item">
                            <div class="analysis-item-header">
                                <div class="analysis-item-title">操作准确性</div>
                                <div class="analysis-score score-good" id="accuracyScore">85分</div>
                            </div>
                            <div class="analysis-details">
                                操作步骤基本正确，但在工具选择上存在轻微偏差。建议严格按照标准流程执行。
                            </div>
                        </div>
                        
                        <div class="analysis-item">
                            <div class="analysis-item-header">
                                <div class="analysis-item-title">动作规范性</div>
                                <div class="analysis-score score-excellent" id="normalityScore">92分</div>
                            </div>
                            <div class="analysis-details">
                                动作标准，符合安全操作规范。手势和姿势都很到位。
                            </div>
                        </div>
                        
                        <div class="analysis-item">
                            <div class="analysis-item-header">
                                <div class="analysis-item-title">时间控制</div>
                                <div class="analysis-score score-fair" id="timingScore">78分</div>
                            </div>
                            <div class="analysis-details">
                                操作时间略长，建议提高操作效率。部分步骤可以更加熟练。
                            </div>
                        </div>
                        
                        <div class="analysis-item">
                            <div class="analysis-item-header">
                                <div class="analysis-item-title">安全意识</div>
                                <div class="analysis-score score-excellent" id="safetyScore">95分</div>
                            </div>
                            <div class="analysis-details">
                                安全意识很强，防护措施到位，符合安全操作要求。
                            </div>
                        </div>
                    </div>
                    
                    <div class="analysis-progress">
                        <div class="progress-item">
                            <div class="progress-label">
                                <span>整体评分</span>
                                <span>87分</span>
                            </div>
                            <div class="progress-bar-bg">
                                <div class="progress-bar-fill good" style="width: 87%;"></div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="analysis-timeline">
                        <div class="timeline-item">
                            <span class="timeline-time">00:15</span>
                            <span class="timeline-content">开始分析操作视频</span>
                        </div>
                        <div class="timeline-item">
                            <span class="timeline-time">00:30</span>
                            <span class="timeline-content">识别操作步骤和动作</span>
                        </div>
                        <div class="timeline-item">
                            <span class="timeline-time">01:00</span>
                            <span class="timeline-content">分析动作规范性</span>
                        </div>
                        <div class="timeline-item">
                            <span class="timeline-time">01:30</span>
                            <span class="timeline-content">评估安全操作</span>
                        </div>
                        <div class="timeline-item">
                            <span class="timeline-time">02:00</span>
                            <span class="timeline-content">生成分析报告</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 侧边栏 -->
            <div class="sidebar">
                <!-- 总体评分 -->
                <div class="sidebar-panel">
                    <div class="sidebar-header">
                        <div class="sidebar-title">总体评分</div>
                    </div>
                    <div class="sidebar-content">
                        <div class="overall-score">
                            <div class="overall-score-value" id="overallScore">87</div>
                            <div class="overall-score-label">分</div>
                        </div>
                        
                        <div class="action-buttons">
                            <button class="btn btn-primary" onclick="viewDetails()">查看详情</button>
                            <button class="btn btn-success" onclick="acceptResult()">接受结果</button>
                            <button class="btn btn-warning" onclick="requestReview()">申请复核</button>
                            <button class="btn btn-default" onclick="downloadReport()">下载报告</button>
                        </div>
                    </div>
                </div>

                <!-- 判定标准 -->
                <div class="sidebar-panel">
                    <div class="sidebar-header">
                        <div class="sidebar-title">判定标准</div>
                    </div>
                    <div class="sidebar-content">
                        <ul class="criteria-list">
                            <li class="criteria-item">
                                <div class="criteria-icon passed">✓</div>
                                <div class="criteria-content">
                                    <div class="criteria-title">工具准备</div>
                                    <div class="criteria-desc">正确选择所需工具</div>
                                </div>
                                <div class="criteria-score">90分</div>
                            </li>
                            <li class="criteria-item">
                                <div class="criteria-icon passed">✓</div>
                                <div class="criteria-content">
                                    <div class="criteria-title">安全防护</div>
                                    <div class="criteria-desc">佩戴防护用品</div>
                                </div>
                                <div class="criteria-score">95分</div>
                            </li>
                            <li class="criteria-item">
                                <div class="criteria-icon failed">✗</div>
                                <div class="criteria-content">
                                    <div class="criteria-title">操作顺序</div>
                                    <div class="criteria-desc">按标准顺序执行</div>
                                </div>
                                <div class="criteria-score">75分</div>
                            </li>
                            <li class="criteria-item">
                                <div class="criteria-icon passed">✓</div>
                                <div class="criteria-content">
                                    <div class="criteria-title">动作标准</div>
                                    <div class="criteria-desc">动作规范准确</div>
                                </div>
                                <div class="criteria-score">92分</div>
                            </li>
                            <li class="criteria-item">
                                <div class="criteria-icon pending">○</div>
                                <div class="criteria-content">
                                    <div class="criteria-title">完成检查</div>
                                    <div class="criteria-desc">操作后检查</div>
                                </div>
                                <div class="criteria-score">-</div>
                            </li>
                        </ul>
                    </div>
                </div>

                <!-- 改进建议 -->
                <div class="sidebar-panel">
                    <div class="sidebar-header">
                        <div class="sidebar-title">改进建议</div>
                    </div>
                    <div class="sidebar-content">
                        <div style="font-size: 13px; line-height: 1.6; color: #666;">
                            <p style="margin-bottom: 12px;"><strong>1. 操作顺序优化</strong></p>
                            <p style="margin-bottom: 12px;">建议严格按照标准操作流程执行，避免步骤跳跃。</p>
                            
                            <p style="margin-bottom: 12px;"><strong>2. 提高操作效率</strong></p>
                            <p style="margin-bottom: 12px;">通过反复练习，缩短操作时间，提高熟练度。</p>
                            
                            <p style="margin-bottom: 12px;"><strong>3. 加强细节注意</strong></p>
                            <p>注意工具的正确使用方法，避免操作偏差。</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 详细结果弹窗 -->
    <div class="modal" id="detailsModal">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title">详细分析结果</h3>
                <button class="modal-close" onclick="closeModal()">&times;</button>
            </div>
            <div class="modal-body">
                <div style="margin-bottom: 20px;">
                    <h4 style="margin-bottom: 12px; color: #333;">操作步骤分析</h4>
                    <div style="background: #f8f9fa; padding: 16px; border-radius: 8px; font-size: 14px; line-height: 1.6;">
                        <p style="margin-bottom: 8px;"><strong>步骤1：工具准备</strong> - 正确 ✓</p>
                        <p style="margin-bottom: 8px;"><strong>步骤2：安全检查</strong> - 正确 ✓</p>
                        <p style="margin-bottom: 8px;"><strong>步骤3：开始操作</strong> - 部分正确 ⚠️</p>
                        <p style="margin-bottom: 8px;"><strong>步骤4：完成检查</strong> - 待完成 ○</p>
                    </div>
                </div>
                
                <div style="margin-bottom: 20px;">
                    <h4 style="margin-bottom: 12px; color: #333;">关键时间点</h4>
                    <div style="background: #f8f9fa; padding: 16px; border-radius: 8px; font-size: 14px; line-height: 1.6;">
                        <p style="margin-bottom: 8px;">00:15 - 开始工具准备</p>
                        <p style="margin-bottom: 8px;">00:45 - 完成安全检查</p>
                        <p style="margin-bottom: 8px;">01:20 - 开始主要操作</p>
                        <p style="margin-bottom: 8px;">02:00 - 操作完成</p>
                    </div>
                </div>
                
                <div>
                    <h4 style="margin-bottom: 12px; color: #333;">AI识别结果</h4>
                    <div style="background: #f8f9fa; padding: 16px; border-radius: 8px; font-size: 14px; line-height: 1.6;">
                        <p style="margin-bottom: 8px;">• 识别到5个主要操作步骤</p>
                        <p style="margin-bottom: 8px;">• 检测到2个不规范动作</p>
                        <p style="margin-bottom: 8px;">• 安全操作符合率95%</p>
                        <p>• 整体操作质量良好</p>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button class="btn btn-default" onclick="closeModal()">关闭</button>
                <button class="btn btn-primary" onclick="downloadDetails()">下载详情</button>
            </div>
        </div>
    </div>

    <script>
        // 全局变量
        let isAnalyzing = true;
        let analysisComplete = false;

        // 播放控制
        function togglePlay() {
            console.log('播放/暂停视频');
        }

        function seekVideo(event) {
            console.log('跳转到:', event);
        }

        // 分析状态更新
        function updateAnalysisStatus() {
            const status = document.getElementById('analysisStatus');
            const content = document.getElementById('analysisContent');
            
            if (isAnalyzing) {
                status.innerHTML = '<span class="loading-spinner"></span> 分析中...';
                status.className = 'analysis-status status-analyzing';
            } else {
                status.textContent = '分析完成';
                status.className = 'analysis-status status-completed';
                content.style.opacity = '1';
            }
        }

        // 模拟分析过程
        function simulateAnalysis() {
            setTimeout(() => {
                isAnalyzing = false;
                updateAnalysisStatus();
                analysisComplete = true;
            }, 3000);
        }

        // 查看详情
        function viewDetails() {
            document.getElementById('detailsModal').style.display = 'flex';
        }

        // 接受结果
        function acceptResult() {
            if (confirm('确定要接受AI判定结果吗？')) {
                console.log('接受判定结果');
                alert('结果已接受，将记录到学习档案中');
            }
        }

        // 申请复核
        function requestReview() {
            if (confirm('确定要申请人工复核吗？')) {
                console.log('申请人工复核');
                alert('复核申请已提交，将在24小时内处理');
            }
        }

        // 下载报告
        function downloadReport() {
            console.log('下载分析报告');
            alert('报告下载中...');
        }

        // 下载详情
        function downloadDetails() {
            console.log('下载详细分析');
            closeModal();
        }

        // 弹窗控制
        function closeModal() {
            document.getElementById('detailsModal').style.display = 'none';
        }

        // 点击弹窗外部关闭
        document.getElementById('detailsModal').addEventListener('click', (e) => {
            if (e.target.id === 'detailsModal') {
                closeModal();
            }
        });

        // 初始化
        document.addEventListener('DOMContentLoaded', () => {
            updateAnalysisStatus();
            simulateAnalysis();
        });
    </script>
</body>
</html>

